<html>
<head>

<meta charset="utf-8">
<title>COTEE</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('/assets/css/bootstrap.min.css')?>">
<link rel="stylesheet" type="text/css" href="<?php echo base_url('/assets/css/base.css')?>">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="<?php echo base_url('/assets/js/bootstrap.min.js')?>"></script>


</head>
<body>


<div class="navbar navbar-default" role="navigation">
	<!-- Brand and toggle get grouped for better mobile display -->
	<div class="navbar-header">

		<img src="<?php echo base_url('/assets/img/logo2.jpg')?>" alt="COTEE Logo">
	</div>

	<!-- Collect the nav links, forms, and other content for toggling -->
	<div class="collapse navbar-collapse navbar-ex1-collapse">
	<?php if($this->session->userdata('logged_in')): ?>
		<ul class="nav navbar-nav">
			<li><a href="<?php echo base_url('site')?>">Početna strana</a></li>
			<li><?php echo anchor('site/upload', 'Unos dokumenata'); ?></li>
			<li><?php echo anchor('site/files', 'Pretraga dokumenata'); ?></li>
		</ul>
		<!--
		<form class="navbar-form navbar-left" role="search">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="Search">
			</div>
			<button type="submit" class="btn btn-default">Submit</button>
		</form>-->
		
		<ul class="nav navbar-nav navbar-right">
			<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Dobrodošli <?php  echo ($this->session->userdata('logged_in')['username']);?><span class="caret"></span></a>
				<ul class="dropdown-menu" role="menu">
					<li><?php echo anchor('login/logout', 'Odjavi se'); ?></li>
				</ul>
			</li>
		</ul>
		<?php endif; ?>
	</div><!-- /.navbar-collapse -->	

</div>